
/**
*Copyright 2018 Yonyou Corporation Ltd. All Rights Reserved.
* This software is published under the terms of the Yonyou Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : dmscloud.basedata.common
*
* @File name : BaseDataCommonConstants.java
*
* @Author : Lius
*
* @Date : 2018年8月29日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2018年8月29日    Lius    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/

package com.yonyou.cyxdms.basedata.client.constants;

/**
 * CommonConstants
 *
 * @author Lius
 * @date 2018年8月29日
 */

public class BaseDataCommonConstants {

    private BaseDataCommonConstants() {}

    public static final String BRAND_CACHE_BRANDID = "cyxdms:basedata:brand:{0}";
    public static final String BRAND_CACHE_BRAND_ALL= "cyxdms:basedata:brandall:{0}:{1}";
    public static final String BRAND_CACHE_BRAND_APPID_ALL = "cyxdms:basedata:brand:appId:{0}";
    public static final String SERIAL_CACHE_SERIESID = "cyxdms:basedata:series:{0}";
    public static final String SERIAL_CACHE_SERIES_ALL= "cyxdms:basedata:seriesall:{0}:{1}";
    public static final String SERIAL_CACHE_SERIES_APPID_ALL = "cyxdms:basedata:series:appId:{0}";
    public static final String MODEL_CACHE_MODELID = "cyxdms:basedata:model:{0}";
    public static final String MODEL_CACHE_MODEL_ALL= "cyxdms:basedata:modelall:{0}:{1}";
    public static final String MODEL_CACHE_MODEL__APPID_ALL = "cyxdms:basedata:model:appId:{0}";
    public static final String PACKAGE_CACHE_PACKAGEID = "cyxdms:basedata:package:{0}";
    public static final String OPTION_CACHE_OPTIONID = "cyxdms:basedata:option:{0}";
    public static final String PACKAGE_CACHE_PACKAGE_ALL = "cyxdms:basedata:packageall:{0}:{1}";
    public static final String PACKAGE_CACHE_OPTION_ALL = "cyxdms:basedata:optionall:{0}:{1}";
    public static final String PACKAGE_CACHE_PACKAGE_APPID_ALL = "cyxdms:basedata:package:appId:{0}";
    public static final String COLOR_CACHE_COLORID = "cyxdms:basedata:color:{0}:{1}";
    public static final String COLOR_CACHE_COLOR_APPID_COLORTYPE = "cyxdms:basedata:color:appId:{0}:{1}";
    public static final String CODE_CACHE_TYPE = "cyxdms:basedata:code:{0}";
    public static final String ALLCODE_CACHE_TYPE = "cyxdms:basedata:allcode:{0}";
    public static final String ALLCODE_AVAI_CACHE_TYPE = "cyxdms:basedata:allcode:avai:{0}";
    public static final String REGION_CACHE_REGION = "cyxdms:basedata:region:{0}";
    public static final String REGION_CACHE_REGION_APPID = "cyxdms:basedata:region:appId:{0}";
    public static final String REGION_CACHE_REGION_ID = "cyxdms:basedata:region:id:{0}";
    public static final String PRODUCT_CACHE_DATA = "cyxdms:basedata:product:{0}:{1}:{2}";
    public static final String PRODUCT_CACHE_PRODUCTID = "cyxdms:basedata:product:{0}";
    public static final String VSPRODUCT_CACHE_VSPRODUCT = "cyxdms:basedata:vsproduct:{0}:{1}";
    public static final String VSPRODUCT_CACHE = "cyxdms:basedata:vsproduct";
    public static final String CODE_CACHE_CODEID = "cyxdms:basedata:codeId";
    public static final String REDIS_KEY_ALL = "all";
    public static final String APP_ID = "appId";
    public static final String OWNER_CODE = "ownerCode";
    public static final String SPLIT_STR = ",";

    public static final Long EXPIRE_TIME_ONE_DAY = 1000 * 60 * 60 * 24L;

}
